package net.aiform.security.pojo;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import net.aiform.pojo.Identity;
@Entity
@Table(name = "af_formac")
public class FormAccessController extends Identity implements Serializable {
	private static final long serialVersionUID = 8311090517390801387L;
	private String type;
	@OneToMany(mappedBy = "refer", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
	private Set<Property> property;

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Set<Property> getProperty() {
		return property;
	}

	public void setProperty(Set<Property> property) {
		this.property = property;
	}

	@Override
	public String toString() {
		return "FormAccessController [property=" + property + ", type=" + type + ", code=" + code + ", createTime=" + createTime + ", expireTime="
				+ expireTime + ", id=" + id + ", name=" + name + "]";
	}

}
